<?php

require_once 'model/phrase.class.php';

class Core_Table_Phrase extends Database_Table
{
	protected $_name = 'intl_phrase';

	protected $_rowClass = 'Core_Table_Model_Phrase';

	function loadForTranslator($lang)
	{
		$db = $this -> getAdapter();

		$lang = $db -> quote($lang, 'string');

		$sql = 'select phrase_key, phrase_value from ' . $this -> getName();

		return $db -> fetchPairs($sql);
	}

}
